using System.Text.Json.Serialization;

namespace GEM.Infrastructure.AI.Models;

/// <summary>
/// DeepSeek API 响应模型
/// </summary>
public class DeepseekResponse
{
    /// <summary>
    /// 响应内容
    /// </summary>
    [JsonPropertyName("choices")]
    public Choice[] Choices { get; set; } = Array.Empty<Choice>();
}


public class Choice
{
    [JsonPropertyName("message")]
    public Message Message { get; set; } = new();

    [JsonPropertyName("delta")]
    public Message? Delta { get; set; }
}

/// <summary>
/// 消息
/// </summary>
public class Message
{
    [JsonPropertyName("content")]
    public string Content { get; set; } = string.Empty;
}